package com.lft.cryptology05.desaes;

import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;

import java.util.Arrays;

public class StringDemo {
    public static void main(String[] args) {
        String str = "TU0jV0xBTiNVYys5bEdiUjZlNU45aHJ0bTdDQStBPT0jNjQ2NDY1Njk4IzM5OTkwMDAwMzAwMA==";
        
        String str1 = new String(Base64.decode(str)); // 输出明文
        String str2 = Base64.decode(str).toString(); // 输出内存地址
        String str3 = Arrays.toString(Base64.decode(str)); // 打印数组
        
        System.out.println("Str1: " + str1);
        System.out.println("Str2: " + str2);
        System.out.println("Str3: " + str3);
    }
}
